package org.dubnation.car.mapper;

import org.dubnation.car.domain.Car;
import org.dubnation.base.mapper.BaseMapper;
import org.dubnation.car.domain.CarInfoVO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhu
 * @since 2023-11-02
 */
public interface CarMapper extends BaseMapper<Car> {

    List<Car> queryByIds(List<Long> ids);

    void updateOnSaleByIds(List<Long> ids);

    void updateOffSaleByIds(List<Long> ids);

    CarInfoVO getCarInfo(Long id);

    List<Car> getSellNum(Long sellerId);

    Car queryByTitle(String title);
}
